<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="${pageContext.request.contextPath }/jstl01.jsp" method="post">
用户名：<input type="text" name="user_name"><br>
<input type="submit" value="提交">
<input type="reset" value="重置">
</form>
<hr>
<c:if test="${param.user_name=='admin'}">
    登录用户：${param.user_name }，属于管理员。
</c:if>
<c:if test="${(param.user_name!=null)&&param.user_name!='admin'}">
    登录用户：${param.user_name }，属于普通用户。
</c:if>
</body>
</html>